package com.example.hanchen.yongkanggy.home;

import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;

import com.example.hanchen.yongkanggy.entity.StatusCode;
import com.example.hanchen.yongkanggy.home.activity.HomeActivity;
import com.example.hanchen.yongkanggy.home.activity.LoginActivity;
import com.example.hanchen.yongkanggy.utils.PreferencesUtil;
import com.example.hanchen.yongkanggy.utils.SharePreferencesConsts;

import me.jessyan.autosize.AutoSize;
import me.jessyan.autosize.AutoSizeConfig;
import me.jessyan.autosize.unit.Subunits;

public class MyApplication extends Application {


    public static MyApplication myApplication;

    public static Context getContext() {
        return myApplication;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        myApplication = this;

        /*适配*/
        AutoSize.initCompatMultiProcess(this);

        AutoSizeConfig.getInstance().getUnitsManager()
                .setSupportDP(true)
                .setSupportSP(true)
                .setSupportSubunits(Subunits.MM);
    }
}
